﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AjRootPage.master" AutoEventWireup="true"
    CodeFile="PersonList.aspx.cs" Inherits="V1_PersonList" %>

<%@ Register Src="UcPersonList.ascx" TagName="UcPersonList" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style>
        #toolbar
        {
            padding: 5px 4px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server">
    <br class="ClearFix" />
    <div id="toolbar" class="ui-widget-header ui-corner-all">
        <input id="btnAdd" type="button" value="添加" onclick="javascript:void(0);" />
        <input id="btnEdit" type="button" value="修改" onclick="javascript:void(0);" />
        <input id="btnDelete" type="button" value="删除" onclick="javascript:void(0);" />
    </div>
    <uc1:UcPersonList ID="UcPersonList1" runat="server" />
    <div id="JQueryDlg">
    </div>
    <script language="javascript" type="text/javascript">
        var dlg = $("#JQueryDlg");

        $(document).ready(function () {
            $("#btnAdd").click(function (e) {
                JQueryWindowEx(dlg,
                "添加明细",
                '<%=ResolveUrl("~/V1/PersonDetail.aspx")+"?id=1" %>',
                400, 300, jQuery.noop);
            });

            $("#btnEdit").click(function (e) {
                JQueryWindowEx(dlg,
                "修改明细",
                '<%=ResolveUrl("~/V1/PersonDetail.aspx")+"?id=1" %>',
                400, 300, jQuery.noop);
            });

            $("#btnDelete").click(function (e) {
                return JQueryConfirm(dlg, "询问", "是否删除记录", "是", "否",
                function () {
                    dlg.dialog("close");
                    
                },
                function () { dlg.dialog("close"); return false; });
            });

        });


    </script>
</asp:Content>
